package ysq.xyg.host.service;


import ysq.xyg.base.model.dto.ReturnEntity;
import ysq.xyg.base.service.BaseService;
import ysq.xyg.host.model.po.HostSearch;
import ysq.xyg.sys.model.po.SysUser;
import ysq.xyg.host.model.vo.HostSearchVo;

import java.util.List;


/**
 * 房产模块-搜索关键字service接口
 *
 * @author shengQiang yu
 * @date 2019-7-16 14:44:32
 */
public interface HostSearchService extends BaseService<HostSearch> {
    /**
     * 分页查询
     *
     * @param hostSearchVo 对象
     * @param pageSize 当前页面
     * @param pageNum 页面数量
     * @return ReturnEntity 对象
     * @author shengQiang yu
     * @date 2019-7-16 14:44:32
     */
    ReturnEntity page(HostSearchVo hostSearchVo, int pageSize, int pageNum);
    /**
     * 修改
     *
     * @param hostSearchVo 对象
     * @param currentUser 当前用户
     * @return ReturnEntity 对象
     * @author shengQiang yu
     * @date 2019-7-16 14:44:32
     */
    ReturnEntity addOrUpdate(HostSearchVo hostSearchVo, SysUser currentUser);
    /**
     * 删除
     *
     * @param id 主键id删除
     * @param currentUser 当前用户
     * @return ReturnEntity 对象
     * @author shengQiang yu
     * @date 2019-7-16 14:44:32
     */
    ReturnEntity delete(String id, SysUser currentUser);
    /**
     * 获取集合
     *
     * @param hostSearchVo 对象
     * @return List<HostSearch> HostSearch集合
     * @author shengQiang yu
     * @date 2019-7-16 14:44:32
     */
    List<HostSearch> acceptList(HostSearchVo hostSearchVo);
}
